<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Blago
 */

?>
<?php $social_network = carbon_get_theme_option('social_network');?>
    <section class="modal modal_form" id="form">
        <div class="modal__box">
            <button class="modal__close" id="modal__box_close_form">
                <svg xmlns="http://www.w3.org/2000/svg" width="800px" height="800px" viewBox="0 0 24 24" fill="none">
                    <path opacity="0.5"
                        d="M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z"
                        stroke="#1C274C" stroke-width="1.5" />
                    <path d="M14.5 9.50002L9.5 14.5M9.49998 9.5L14.5 14.5" stroke="#1C274C" stroke-width="1.5"
                        stroke-linecap="round" />
                </svg>
            </button>
            <p>
                <?php echo do_shortcode( '[contact-form-7 id="52c147d" title="Заказ"]' ); ?>
            </p>
        </div>
    </section>
    <section class="modal modal_cookie" id="cookie">
        <div class="modal__box">
            <button class="modal__close" id="modal__box_close_cookie">
                <svg xmlns="http://www.w3.org/2000/svg" width="800px" height="800px" viewBox="0 0 24 24" fill="none">
                    <path opacity="0.5"
                        d="M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z"
                        stroke="#1C274C" stroke-width="1.5" />
                    <path d="M14.5 9.50002L9.5 14.5M9.49998 9.5L14.5 14.5" stroke="#1C274C" stroke-width="1.5"
                        stroke-linecap="round" />
                </svg>
            </button>
            <p>
                Для улучшения работы сайта и его взаимодействия с пользователями мы используем файлы cookie. Продолжая
                работу с сайтом, Вы разрешаете использование cookie-файлов. Вы всегда можете отключить файлы cookie в
                настройках Вашего браузера.
            </p>
            <button class="button__cookei" id="cookei_closet">Принять</button>
        </div>
    </section>
    <footer>
        <div class="menu-footer-container">
            <?php dlago_footer_menu();?>
            <div class="socialNetwork">
            <?php if($social_network):?>
                <div class="socialNetwork__linck">
                <?php foreach($social_network as $network):?>
                <?php $logo = wp_get_attachment_image_url( $network['logo'] , 'large');?>
                        <a href="<?php echo $network['social_network_link']?>"><img src="<?php echo $logo ?>" alt="instagram"></a>
                <?php endforeach?>
                </div>
            <?php endif?>
            </div>
        </div>
    </footer>
</div><!-- class="conteiner" -->


<?php wp_footer(); ?>

</body>
</html>
<script>
jQuery('.open_form, .button__product').click(function () {
    let titleServise = jQuery(this).attr('datatitle');
    let linckServise = jQuery(this).attr('datalinck');
    let dateServise = jQuery(this).attr('datadate');
    let deysServise = jQuery(this).attr('datadeys');
    jQuery('.hideTitle').val(titleServise);
    jQuery('.hideLinck').val(linckServise);
    jQuery('.hideDeys').val(deysServise);
    jQuery('.hideDate').val(dateServise);
    
});
</script>
